package com.mao.abstract2;


public abstract class Person {
    // 模板方法是给子类使用的，子类不能重写
    // 一旦重写了，模板方法失效
    public final void write(){
        System.out.println("Hello! This is first line!");
        writeMain();
        System.out.println("Bye! This is last line!");

    }
    public abstract void writeMain();
}
